#pragma once

#include <QWidget>
#include "ui_TalkWindowItem.h"
#include <qwidget.h>

class TalkWindowItem : public QWidget
{
	Q_OBJECT

public:
	TalkWindowItem(QWidget *parent = Q_NULLPTR);
	~TalkWindowItem();

public:
	void setHeadPixmap(const QString& headPath);
	void setContactName(const QString& name);

protected:
	void enterEvent(QEvent* event) override;
	void leaveEvent(QEvent* event) override;

private:
	void init();

private:
	Ui::TalkWindowItem ui;

signals:
	void ontclosebtnClicked();

};
